/**
 * 关闭当前tab页并返回到上一个界面
 */
function back(that) {
  that.$store.dispatch('tagsView/delView', that.$route).then(
    that.$router.back(-1)
  )
}

/**
 * 关闭当前tab页并返回到指定界面
 */
function backPath(that, path) {
  that.$store.dispatch('tagsView/delView', that.$route).then(() => {
    that.$router.push({ path: path })
  }
  )
}

export default { back, backPath }
